package com.web.music;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.web.music.common.BeanRegistry;
import com.web.music.interfaces.MusicProcessor;

/**
 * Entry point into application
 */
public class MusicMain {

	public static void main(String[] args) 
	{
		ApplicationContext appCtxt = new ClassPathXmlApplicationContext(BeanRegistry.BEAN_CONFIG_FILE);
		MusicProcessor musicProcessor = (MusicProcessor)appCtxt.getBean(BeanRegistry.MUSIC_PROCESSOR);
		musicProcessor.execute();	
		System.out.println("Music application execution successfully completed");
	}

}
